//
//  SearchNewsTableViewCell.m
//  news
//
//  Created by lanou on 15/12/19.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "SearchNewsTableViewCell.h"

@implementation SearchNewsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, kWidth - 40, 40)];
        self.titleLabel.numberOfLines = 2;
        self.titleLabel.font = [UIFont systemFontOfSize:14.0];
        [self.contentView addSubview:self.titleLabel];
        
        self.ptimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 60, kWidth - 40, 10)];
        self.ptimeLabel.font = [UIFont systemFontOfSize:10.0];
        self.ptimeLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.ptimeLabel];
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
